<template>
<div>
  <h1>图书展示页</h1>
  <table border="1" align="center">
    <tr>
      <td>图书名称</td>
      <td>图书价格</td>
      <td>作者</td>
    </tr>
    <tr v-for="i in list">
      <td>{{i.bname}}</td>
      <td>{{i.modney}}</td>
      <td>{{i.waijian}}</td>
    </tr>
  </table>
</div>
</template>
<script>
export default {
  name: "ce_2",
  data(){
    return{
      list:[]
    }
  },
  methods:{
      book(){
        this.axios.get('user/Bbook/')
        .then(res=>{
          this.list = res.data.list
        })
      }
  },
  mounted() {
    this.book()
  }
}
</script>

<style scoped>

</style>
